﻿@model Retete.ViewModels.ProdusViewModel
@{
    ViewBag.Title = "Inventar";
}

@using (Html.BeginForm(null, null, FormMethod.Post, new { id = "form", name = "form" }))
{
    <table style="width: 100%">
        <tr>
            <td style="width: 190px; vertical-align: top; border-right-style: dashed; border-right-color: #CFCFCF; border-right-width: 1px;">
                <fieldset>
                    <legend>Activitati</legend>

                    <p class="toolbox"><a href="javascript:form.submit()">Accepta</a></p>
                    <p class="toolbox">@Html.ActionLink("Renunta", "Index")</p>
                </fieldset>
            </td>
            <td style="vertical-align: top;">
                @Html.ValidationSummary(false)

                <fieldset>
                    <legend>Adaugare produs nou in inventar</legend>

                    <p>
                        @Html.LabelFor(model => model.ProdusNouCod, "Cod si nume")
                        @Html.TextBoxFor(model => model.ProdusNouCod, new { style = "width: 80px;", placeholder = Model.CodUltimulProdus })
                        @Html.TextBoxFor(model => model.ProdusNouNume, new { style = "width: 211px;" })
                    </p>

                    <p>
                        @Html.LabelFor(model => model.ProdusNouUnitateMasura, "UM si categorie")
                        @Html.TextBoxFor(model => model.ProdusNouUnitateMasura, new { style = "width: 80px;" })
                        @Html.TextBoxFor(model => model.ProdusNouCategorie, new { style = "width: 211px;", onkeydown="submitOnEnter()" })
                    </p>
                </fieldset>
            </td>
        </tr>
    </table>
}